package mijia

import "fmt"
import (fm "learning/gooop/creational_patterns/factory_method")

type tMijiaLight struct {
	fm.LightInfo
}


func NewMijiaLight(info *fm.LightInfo) *tMijiaLight {
	return &tMijiaLight{
		*info,
	}
}

func (me *tMijiaLight) Open() error {
	fmt.Printf("tMijiaLight.Open, %v\n", &me.LightInfo)
	return nil
}

func (me *tMijiaLight) Close() error {
	fmt.Printf("tMijiaLight.Close, %v\n", &me.LightInfo)
	return nil
}